﻿#ifndef MASKWIDGET_H
#define MASKWIDGET_H

#include <QWidget>
#include <QDebug>
#include <QEvent>
#include <QkeyEvent>



class MaskWidget :public QWidget
{
	Q_OBJECT
private:
	QWidget* m_mainwidget{};
	//qwidget的set容器，用来存放弹出的对话框：
	QWidgetSet m_dialogs{};

signals:

public:
	static MaskWidget* instance();
	MaskWidget(QWidget* parent = nullptr);
	void setMainWidget(QWidget* widget);
	void addDialog(QWidget* dialog);
	void popup(QWidget* dialog);
	void closeWidget();

public:
	bool eventFilter(QObject* object, QEvent* ev)override;

};
#endif // !MASKWIDGET_H
